package com.stormrage.edu.serv.learn.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stormrage.edu.dao.learn.LeaBunchDao;
import com.stormrage.edu.serv.learn.LeaBunchServ;
import com.stormrage.entity.learn.LeaBunch;
import com.stormragetech.core.exception.StormrageTechException;

/**
 * @Title: LeaBunchServImpl.java
 * @Package com.stormrage.edu.serv.learn.impl
 * @Description: 班级 Serv
 * @author www.stormragetech.com
 * @date 2016年5月9日
 * @version V1.0
 */
@Service
public class LeaBunchServImpl implements LeaBunchServ {

	private static final Logger logger = LoggerFactory.getLogger(LeaBunchServImpl.class);

	@Autowired
	private LeaBunchDao leaBunchDao;

	@Override
	public List<LeaBunch> queryListByStuId(Integer arg0) throws StormrageTechException {

		logger.debug(" 【 Serv 】- 【 LeaBunchServ 】- 【 queryListByStuId 】-【 STARTED 】");

		Map<String, Object> map = new HashMap<String, Object>();
		map.put("acctId", arg0);

		List<LeaBunch> array = leaBunchDao.queryListByStuId(map);

		logger.debug(" 【 Serv 】- 【 LeaBunchServ 】- 【 queryListByStuId 】-【 COMPLETED 】");
		return array;

	}

}
